package MainTest;

/**
 * Created by xuyi on 2017/2/11.
 */
public class BitCaculate {

    public static void main(String[] args) {

        int a=2;
        System.out.println("a 非的结果是："+(~a));

        int i1 = 16 % -7; // 结果为2

        System.out.println(i1);

        Integer integer = new Integer(2);

        short i = -2 >> 6;

        System.out.println(i); // 为什么结果还是 -1 ？

    }



}
